import defaultSettings from '@/settings'

const title = defaultSettings.title || 'Vue Admin Template' // 获取默认的标题

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${title} - ${pageTitle}` // 默认标题和路由标题拼接
  }
  return `${title}`
}
